package com.aidex.biz.service.impl;

import java.util.List;
import com.aidex.common.annotation.DataScope;
import com.github.pagehelper.PageInfo;
import com.aidex.common.core.domain.entity.SysUser;
import com.aidex.common.core.domain.entity.SysDept;
import com.aidex.common.core.service.BaseServiceImpl;
import com.aidex.framework.cache.DeptUtils;
import com.aidex.framework.cache.UserUtils;
import org.springframework.stereotype.Service;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.aidex.biz.mapper.LinshiManageMapper;
import com.aidex.biz.domain.LinshiManage;
import com.aidex.biz.service.LinshiManageService;
import org.springframework.transaction.annotation.Transactional;
import com.aidex.common.utils.NumberUtils;

/**
 * 临时督办Service业务层处理
 * @author sean
 * @email 2074844820@qq.com
 * @date 2025-02-19
 */
@Service
@Transactional(readOnly = true)
public class LinshiManageServiceImpl extends BaseServiceImpl<LinshiManageMapper, LinshiManage> implements LinshiManageService
{
    private static final Logger log = LoggerFactory.getLogger(LinshiManageServiceImpl.class);

    /**
     * 获取单条数据
     * @param linshiManage 临时督办
     * @return 临时督办
     */
    @Override
    public LinshiManage get(LinshiManage linshiManage)
    {
        LinshiManage dto = super.get(linshiManage);
        return dto;
    }

    /**
     * 获取单条数据
     * @param id 临时督办id
     * @return 临时督办
     */
    @Override
    public LinshiManage get(String id)
    {
        LinshiManage dto = super.get(id);
        return dto;
    }


    /**
     * 查询临时督办列表
     * @param linshiManage 临时督办
     * @return 临时督办
     */
    @Override
    @DataScope(userAlias = "a",deptAlias = "a")
    public List<LinshiManage> findList(LinshiManage linshiManage)
    {
        return super.findList(linshiManage);
    }

    /**
     * 分页查询临时督办列表
     * @param linshiManage 临时督办
     * @return 临时督办
     */
    @Override
    @DataScope(userAlias = "a",deptAlias = "a")
    public PageInfo<LinshiManage> findPage(LinshiManage linshiManage)
    {
        return super.findPage(linshiManage);
    }

    /**
     * 保存临时督办
     * @param linshiManage
     * @return 结果
     */
    @Override
    public boolean save(LinshiManage linshiManage)
    {
        return super.save(linshiManage);
    }


    /**
     * 删除临时督办信息
     * @param linshiManage
     * @return 结果
     */
    @Override
    public boolean remove(LinshiManage linshiManage)
    {
        return super.remove(linshiManage);
    }

    /**
     * 批量删除临时督办
     * @param ids 需要删除的临时督办ID
     * @return 结果
     */
    @Transactional(readOnly = false)
    @Override
    public int deleteLinshiManageByIds(String[] ids)
    {
        return mapper.deleteLinshiManageByIds(ids);
    }

    /**
     * 获取最大编号
     * @param linshiManage 临时督办
     * @return 结果
     */
    @Override
    public int findMaxSort(LinshiManage linshiManage)
    {
        return NumberUtils.nextOrder(mapper.findMaxSort(linshiManage));
    }
}
